/**
 * The vamp_serviceweb.Link entity.
 *
 * @author    
 *
 *
 */
package vamp
class Link {
    static mapping = {
         table 'link'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'idlink'
    }
    String title
    String uri
    String linktype
    Integer idpoi

    static constraints = {
        title(blank: false)
        uri(blank: false)
        linktype(blank: false)
        idpoi(max: 2147483647)
    }
    String toString() {
        return "${id}"
    }
}
